home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 1.0 for Developers / QuickTime 1.0 for Developers.iso / Programming Stuff / Interfaces / Oldstyle C Interfaces / StandardPreview.h < prev    next >
C/C++ Source or Header  |  1991-09-06  |  2KB  |  66 lines

  1. /*
  2.     File:        StandardPreview.h
  3.     Contains:    Headers for Previewing Extensions to Standard File Package
  4.     Copyright:    © 1990 by Apple Computer, Inc., all rights reserved.
  5. */
  6.  
  7. #ifndef __STANDARDPREVIEW__
  8. #define __STANDARDPREVIEW__
  9.  
  10.  
  11. #include <StandardFile.h>    /* because this code is based on Standard File */
  12. #include <Files.h>            /* to get definition of FSSpec */
  13.  
  14. /************** Previewing Extensions to The Standard File Package **********/
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. pascal void 
  21. StandardGetFilePreview(        
  22.         FileFilterProcPtr     fileFilter,
  23.         short                 numTypes,
  24.         SFTypeList             typeList,
  25.         StandardFileReply *    reply)
  26.         
  27.     = {0x3F3C,0x0009,0xA9EA}; 
  28.                             
  29. pascal void 
  30. CustomGetFilePreview(    
  31.         FileFilterYDProcPtr        fileFilter,
  32.         short                    numTypes,
  33.         SFTypeList                typeList, 
  34.         StandardFileReply *        reply, 
  35.         short                    dlgID,
  36.         Point                    where, 
  37.         DlgHookYDProcPtr        dlgHook, 
  38.         ModalFilterYDProcPtr    filterProc,
  39.         short *                    activeList, 
  40.         ActivateYDProcPtr         activateProc, 
  41.         void *                    yourDataPtr)    
  42.         
  43.         ={ 0x3F3C, 0x000A, 0xA9EA };
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. /* Dialog box IDs for previewing */
  50.  
  51. enum {spGetDlgID_Sys6 = -3998};
  52. enum {spGetDlgID_Sys7 = -6039};
  53.  
  54. /* Item numbers for the Previewing Dialog Boxes */
  55.  
  56. enum {spItemReserved =                 10};
  57. enum {spItemPreviewArea =             11};
  58. enum {spItemPreviewStatText =         12};
  59. enum {spItemVertDividerPict =         13};
  60. enum {spItemFileInfoField =         14};
  61. enum {spItemCreatePreviewButton =     15};
  62.  
  63. enum {spFirstPreviewItemNumber =     spItemPreviewArea};
  64. enum {spLastPreviewItemNumber =     spItemCreatePreviewButton};
  65.  
  66. #endif /* __STANDARDPREVIEW__ */